package com.example.deliveryapp;// OkHttpUtil.java
import okhttp3.*;

import java.io.IOException;

public class OkHttpUtil {
    private static final OkHttpClient client = new OkHttpClient();

    public static void sendLoginRequest(String url, RequestBody formBody, Callback callback) {
        Request request = new Request.Builder()
                .url(url)
                .post(formBody)
                .build();

        client.newCall(request).enqueue(callback);
    }
}